/**
 * 首页模块
 */
import { service, paramsQuery } from './request';

// 直客/今日总消耗
export function fetchHomeAccount(param) {
  let ret = paramsQuery('/manage/api/bus/home/get_today_consum', param);
  return service.post(ret.path, ret.body);
}

// 直客/推广统计
export function fetchHomeGeneralize(param) {
  let ret = paramsQuery('/manage/api/bus/home/get_promote_stat', param);
  return service.post(ret.path, ret.body);
}

// 直客/近七日消耗
export function fetchHomeWeekData(param) {
  let ret = paramsQuery('/manage/api/bus/home/get_consume_data', param);
  return service.post(ret.path, ret.body);
}

// 管理员/数据总览
export function fetchHomeOverviewData() {
  let ret = paramsQuery('/manage/api/bus/home/get_data_overview');
  return service.post(ret.path, ret.body);
}

// 管理员/近七日消耗
export function fetchHomeWeekExpend(param) {
  let ret = paramsQuery('/manage/api/bus/home/get_data_consume', param);
  return service.post(ret.path, ret.body);
}